Book Contents

Example: Arithmetic operators

For these examples, tag1 = 5 and tag2 = 7.

tag1 + tag2 returns a value of 12

tag1 * tag2 returns a value of 35

tag1 - tag2 returns a value of -2

tag1 / tag2 returns a value of 0.71

tag2 MOD tag1 returns a value of 2*

* To use MOD, both tags must contain integer values.

tag1 ** tag2 returns a value of 78125

See also

About expressions

Arithmetic operators in expressions